#define _CRT_SECURE_NO_WARNINGS
#include "2.2_hs.h"
char* m_strcpy(char* p1, const char* p2)
{
	assert(p1 && p2);
	char* ret = p1;
	while (*p2)
		*p1++ = *p2++;
	*p1 = *p2;
	return ret;
}

char* m_strcat(char* p1, const char* p2)
{
	assert(p1 && p2);
	char* ret = p1;
	while (*++p1)
		;
	while (*p2)
		*p1++ = *p2++;
	*p1 = *p2;
	return ret;
}

char* (*signal(int n, char* (*p)(char*, const char*)))(char*, const char*)
{
	return p;
}

int cmp_name(const void* e1, const void* e2)
{
	return strcmp(((struct emp*)(e1))->name, ((struct emp*)(e2))->name);
}